package jdk.features.jdk8;

import java.io.*;

public class Case002_Old
{
    public static void main(String[] args)
    {
        String filePath = "d:/1.txt";
        String outfilePath = "d:/2.txt";

        InputStream in = null;
        OutputStream out = null;

        try {
            in = new FileInputStream(filePath);
            out = new FileOutputStream(outfilePath);
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } finally {
            if (in != null) {
                try {
                    in.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }

            if (out != null) {
                try {
                    out.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }
    }
}
